CatchFailures pushes the specified failure-handling routine onto the global stack of such routines in MacApp.
The fi parameter is a failure information record that MacApp uses to return data in case of a failure. The handler parameter is the procedure that is to be executed upon the next failure.
MacApp uses CatchFailures in numerous places to post the handler routine for each method that provides a failure handler. You can call this routine with an appropriate handler routine when you create or initialize objects, execute commands, modify views, or manipulate memory—in short, almost anytime you need to gracefully exit a failed routine.